[SUBJECT]
Description=Show the time user have been viewing the page!
ImageIndex=-1
Folder=Quick JavaScript


[HEAD_TEXT]
;<SCRIPT LANGUAGE="Javascript">
;<!-- Begin
;pageOpen = new Date();
;function bye() {
;pageClose = new Date();
;minutes = (pageClose.getMinutes() - pageOpen.getMinutes());
;seconds = (pageClose.getSeconds() - pageOpen.getSeconds());
;time = (seconds + (minutes * 60));
;if (time == 1) {
;time = (time + " second");
;}
;else {
;time = (time + " seconds");
;   }
;alert('`label_before` ' + time + ' `label_after`');
;} 
;// End -->
;</SCRIPT>
;


[BODY_TAG]
;OnUnload="bye()"


[`label_before`]
Kind=S
Value=It has been  


[`label_after`]
Kind=S
Value=Please stay longer next time!
